<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page import="com.web.entity.Grade"%>
<%@page import="java.util.List"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" href="css/bootstrap.min.css"/>
        <link rel="stylesheet" href="css/newcss1.css"/>
        <link rel="stylesheet" href="css/mycss_foradim.css"/>
        <script src="js/jquery-3.4.1.min.js"></script>
        <script type="text/javascript" src="js/circle.js" charset="UTF-8"></script>
        <title>SearchClassGrade</title>
    </head>
    <body>
        <div id="navdiv">
            <div class="top_navdiv">
                <div class="top_left">教师中心</div>
                <div class="identity">
                    <span>您好</span>
                    <div class="user_li">
                        <canvas id="myCanvas" width="100" height="30">
                        </canvas>
                    </div>
                </div>
            </div>
        </div>
        <div class="navbar  control_nav" >
            <div class="container"  style="margin-left: 300px; ">
                <ul class="nav navbar-nav navul">
                    <li class="col-md-2">
                        <a href="teacherApplyTest.jsp">申请/取消考试</a>
                    </li>
                    <li class="col-md-2">
                        <input type="hidden" name="ClassID" class="form-control" >
                        <a href="ssls">查看班级列表</a>
                    </li>
                    <li class="col-md-2">
                        <a href="SearchOneStudent.html">查询单个学生</a>
                    </li>
                    <li class="col-md-2">
                        <a href="sosgs">查询学生成绩</a>
                    </li>
                    <li class="col-md-2">
                        <a href="scgs">查询班级成绩</a>
                    </li>
                </ul>
            </div>
        </div>
        <div><a href="teacherInfo.jsp" style="margin-left: 1400px;">返回教师页面</a>
        <br>
            <form class="form-inline text-center" >
                <label for="className">班级：</label>
                <input type="text" id="className" name="className" class="form-control" value="<%=request.getParameter("className")==null?"":request.getParameter("className") %>" placeholder="输入班级名称">
                &nbsp;&nbsp;&nbsp;&nbsp;
                <label for="courseName" id="courseName">科目</label>
                <input type="text" id="courseName" name="courseName" class="form-control" value="<%=request.getParameter("courseName")==null?"":request.getParameter("courseName") %>"  placeholder="输入课程名称">
                &nbsp;
                <button id="btn_searchList" class="btn btn-sm btn-primary">查询</button>
            </form>
            <br>
            <br>
            <table id="studentTable" class="table-condensed table-hover table-striped text-center" style="width:400px; margin-left: 550px;">
                <tr>
                    <th class="text-center">学号</th>
                    <th class="text-center">成绩</th>
                </tr>
                <c:forEach items="${classgrade}" var="s">
                <tr id="tr${s.sid}">
                    <td class="tda">${s.sid}</td>
                    <td class="tda">${s.grade}</td>           
                </tr>
                </c:forEach>
            </table>
                </div>
    </body>
</html>
